|
|
|
|
|
|
|
MDI is most commonly used in those applications where the user can have many forms to work on at the same time. Word processor applications (such as Word), spreadsheet applications (such as Excel), and project manager applications (such as Project) are all good candidates for MDI applications. MDI is also handy when you have a large application, and you want to provide one mechanism for closing all of its forms when the user exits the application. |
|
|
|
|
|
|
|
|
To create an MDI form, select Project, Add MDI Form. This creates a new form in your project that has different properties than a normal form. Youre limited to one MDI form per project. In fact, after adding the MDI form, the Add MDI Form menu item will be grayed out. |
|
|
|
|
|
|
|
|
You can have as many child forms as you want in your project. Child forms are those forms that stay within the MDI container. You may also have as many standard forms in your project as you want. |
|
|
|
|
|
|
|
|
Visual Basic displays different icons in the Project window to represent MDI forms, MDI child forms, and standard forms. See Figure 15.1 for an example of the different icons. |
|
|
|
|
|
|
|
|
Figure 15.1
Icons depict different form types in the Project window. |
|
|
|
|
|